package com.itheima.dao;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    List<Permission> pageQuery(@Param("queryString") String queryString);

    void addPermission(Permission permission);

    Integer queryPermissionAndRole(@Param("id") Integer id);

    void deletePermission(@Param("id") Integer id);

    Permission queryPermissionById(@Param("id") Integer id);

    void updatePermission(Permission permission);
}
